package com.atguigu.b_equals;

public class Demo {
    public static void main(String[] args) {
        String str1 = "Hello";
        String str2 = "World";

        String str3 = "HelloWorld";//0001
        String str4 = "Hello" + "World";//0001
        String str5 = str1 + "World";//0002
        String str6 = "Hello" + str2;//0003
        String str7 = str1 + str2;//0004

        String str8 = "helloworld";

        System.out.println(str3.equals(str4));
        System.out.println(str3.equals(str5));
        System.out.println(str3.equals(str6));
        System.out.println(str3.equals(str7));
        System.out.println(str3.equals(str8));//false
        System.out.println(str3.equalsIgnoreCase(str8));//true 一 壹

    }
}
